﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminCP/admincp.Master" AutoEventWireup="true" CodeBehind="ListProperty.aspx.cs" Inherits="VINETLIFE.AdminCP.ListProperty" %>
<%@ Register Assembly="DevExpress.Web.ASPxTreeList.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTreeList" TagPrefix="dxwtl" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h2>
        Danh sách thuộc tính</h2>
    <div>
    <div style="float: right; width: 100%;">
        <span style="float: left">Chọn danh mục
            <asp:DropDownList runat="server" ID="ddlParentCate" AppendDataBoundItems="true" AutoPostBack="true"
                OnSelectedIndexChanged="ddlParentCate_SelectedIndexChanged">
                <asp:ListItem Text=".: Danh mục thuộc tính :." Value="0"></asp:ListItem>
                <asp:ListItem Text=".: Thuộc tính xe đạp :." Value="1"></asp:ListItem>
                <asp:ListItem Text=".: Thuộc tính phụ kiện :." Value="2"></asp:ListItem>
            </asp:DropDownList>
        </span>
    </div>
        <dxwtl:ASPxTreeList ID="tlProperties" runat="server" AutoGenerateColumns="False" Width="100%"
            ClientInstanceName="tlProperties" KeyFieldName="PropertyID" ParentFieldName="ParentID"
            EnableCallbacks="False" OnNodeDeleted="tlProperties_NodeDeleted" OnStartNodeEditing="tlProperties_StartNodeEditing">
            <SettingsPager Mode="ShowPager" PageSize="50">
                <AllButton Text="Tất cả">
                </AllButton>
                <NextPageButton Text="Tiếp theo &gt;">
                </NextPageButton>
                <PrevPageButton Text="&lt; Trước">
                </PrevPageButton>
            </SettingsPager>
            <SettingsBehavior AllowFocusedNode="True" />
            <SettingsPager ShowDefaultImages="False">
                <AllButton Text="Tất cả">
                </AllButton>
                <NextPageButton Text="Tiếp theo &gt;">
                </NextPageButton>
                <PrevPageButton Text="&lt; Trước">
                </PrevPageButton>
            </SettingsPager>
            <Columns>
                <dxwtl:TreeListTextColumn FieldName="PropertyID" Name="clPropertyID"
                    Visible="False" VisibleIndex="0">
                </dxwtl:TreeListTextColumn>
                <dxwtl:TreeListTextColumn FieldName="PropertyName" Width="50%" Name="clPropertyName"
                    Caption="Tên thuộc tính" VisibleIndex="1">
                </dxwtl:TreeListTextColumn>
                <dxwtl:TreeListTextColumn Caption="Kiểu thuộc tính" Width="30%" Name="clPropertyType"
                    VisibleIndex="2" FieldName="PropertyType">
                </dxwtl:TreeListTextColumn>
                <dxwtl:TreeListCommandColumn Caption="Thao tác" VisibleIndex="4">
                    <EditButton Text="Sửa" Visible="True">
                    </EditButton>
                    <DeleteButton Text="Xóa" Visible="true">
                    </DeleteButton>
                </dxwtl:TreeListCommandColumn>
                
            </Columns>
        </dxwtl:ASPxTreeList>
        <p style="float:left; margin-top:10px;">
            <a href="Properties.aspx" class="button-gg-green">Thêm mới thuộc tính </a>
        </p>
        <hr />
        
    </div>
</asp:Content>
